using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DFeatures._Extraction
{
    /// <summary>
    /// <para>Multipatch Footprint</para>
    /// <para>Creates polygon footprints representing the two-dimensional  area of multipatch features.</para>
    /// <para>创建表示多面体要素二维区域的面轮廓线。</para>
    /// </summary>    
    [DisplayName("Multipatch Footprint")]
    public class MultiPatchFootprint : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MultiPatchFootprint()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_class">
        /// <para>Input Feature Class</para>
        /// <para>The multipatch feature whose footprint will be generated.</para>
        /// <para>将生成其占用空间的多面体要素。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The resulting footprint polygon feature class.</para>
        /// <para>生成的覆盖线面要素类。</para>
        /// </param>
        public MultiPatchFootprint(object _in_feature_class, object _out_feature_class)
        {
            this._in_feature_class = _in_feature_class;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Multipatch Footprint";

        public override string CallName => "3d.MultiPatchFootprint";

        public override List<string> AcceptEnvironments => ["XYResolution", "XYTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_feature_class, _out_feature_class, _group_field];

        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para>The multipatch feature whose footprint will be generated.</para>
        /// <para>将生成其占用空间的多面体要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_class { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The resulting footprint polygon feature class.</para>
        /// <para>生成的覆盖线面要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Group Field</para>
        /// <para>The field used for combining multipatch features so that they contribute to the same footprint polygon.</para>
        /// <para>用于组合多面体要素的字段，以便它们参与到相同的轮廓线面中。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Group Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _group_field { get; set; } = null;


        public MultiPatchFootprint SetEnv(object XYResolution = null, object XYTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYResolution: XYResolution, XYTolerance: XYTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}